package top.ffhome.blog.mapper;

import java.util.Set;

import org.apache.ibatis.annotations.Param;

import top.ffhome.blog.entity.Article;
import top.ffhome.common.mapper.BaseMapper;

public interface ArticleMapper extends BaseMapper<Article> {
	Set<Long> selectLabelsByArticleId(Long articleId);

	int deleteLabelRelation(Long id);

	int insertLabelRelation(@Param("articleId") Long articleId, @Param("labelIds") Set<Long> labelIds);

	int addCount(Long id);
}
